﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace ProMvc.Models
{
    public class GuestResponse
    {
        [Required(ErrorMessage="enter the name please!")]
        public string Name { set; get; }

        [Required(ErrorMessage = "enter the email please!")]
        [RegularExpression(".+\\@.+\\+..+",ErrorMessage="enter the valid email")]
        public string Email { set; get; }

        [Required(ErrorMessage = "enter the phone please!")]
        public string Phone { set; get; }
        public bool? WithAttached { set; get; }
    }
}